package com.techstar.api.pojo.city;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.api.pojo.complex_id.DistrictFlowTrendId;
import com.techstar.common.jackson.StrDateHourDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 行政辖区流量趋势
 * @date 2021年6月24日
 *
 */
@Getter
@Setter
@Entity
@ToString
@Table(name = "district_flow_trend")
@IdClass(DistrictFlowTrendId.class)
@org.hibernate.annotations.Table(appliesTo = "district_flow_trend",comment="pord-2-行政区流量趋势")
public class DistrictFlowTrend {
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '行政区标识'")
	private String distId;
	@Column(columnDefinition="varchar(100) COMMENT '行政区名称'")
	private String distName;
	@Id
	@JsonDeserialize(using = StrDateHourDeserializer.class)
	@Column(columnDefinition="varchar(100) COMMENT '统计时间'")
	private String startTime;
	@Column(columnDefinition="varchar(100) COMMENT '时间间隔标识'")
	private String internalId;
	@Column(columnDefinition="varchar(100) COMMENT '合计PCU车流量'")
	private String pcuValume;
	@Column(columnDefinition="varchar(100) COMMENT '合计PCU车流量同比'")
	private String pcuValumeCsy;
	@Column(columnDefinition="varchar(100) COMMENT '合计PCU车流量环比'")
	private String pcuValumeCsm;
}
